<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>登录</title>
<link href="/aoqianwx/aoqianAdmin/Public/login/style_log.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/aoqianwx/aoqianAdmin/Public/login/style.css">
<link rel="stylesheet" type="text/css" href="/aoqianwx/aoqianAdmin/Public/login/userpanel.css">
<link rel="stylesheet" type="text/css" href="/aoqianwx/aoqianAdmin/Public/login/jquery.ui.all.css">

</head>

<body class="login" mycollectionplug="bind">
<div class="login_m">
  <div class="login_logo">
    <!-- <img src="./login/logo.png" width="196" height="46"> -->
    <h2>后台登录</h2>
  </div>
  <div class="login_boder">

    <form class="login_padding" id="login_model" action="<?php echo U('login/login');?>" method="post">

      <h2>账号：</h2>
      <label>
        <input type="text" id="account" name="account" class="txt_input txt_input2" placeholder="账号">
      </label>
      <h2>密码：</h2>
      <label>
        <input type="password" name="password" id="password" class="txt_input" placeholder="密码">
      </label>
      <br />
      <br />
      <div class="rem_sub">
        <div class="rem_sub_l">
          <input type="checkbox" name="checkbox" id="checkbox">
          <label for="checkbox">记住密码</label>
        </div>
        <label>
          <input type="submit" class="sub_button" name="button" id="button" value="登录" style="opacity: 0.7;">
        </label>
      </div>
    </form>

  <!--login_padding  Sign up end-->
  </div><!--login_boder end-->
</div><!--login_m end-->
<script src="/aoqianwx/aoqianAdmin/Public/admin/assets/js/jquery-1.10.2.js"></script>
<script>
  $(function(){
    var accountinfo=JSON.parse(localStorage.getItem("account"));
    if(accountinfo!=null){
      $('#account').val(accountinfo.account);
      $('#password').val(accountinfo.password);
      $('#checkbox').prop('checked',true);
    }else{
      $('#checkbox').prop('checked',false);
    }
    
    $("#checkbox").on("change",function(){
      if($(this).prop('checked')){
        var account={
          account:$('#account').val(),
          password:$('#password').val()
        };
        localStorage.setItem("account", JSON.stringify(account));
      }else{
        localStorage.removeItem("account");
      }
    });
  })
</script>
</body>
</html>